# $Id$
# Maintainer: Rémy Oudompheng <remy@archlinux.org>
# CPAN Name  : Business::ISBN::Data
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Generator  : CPANPLUS::Dist::Arch 1.29

pkgname=perl-business-isbn-data
_dist=Business-ISBN-Data
pkgver=20140910.003
pkgrel=4
pkgdesc='Data pack for Business::ISBN'
arch=('any')
url='https://metacpan.org/release/${_dist}'
license=('PerlArtistic')
depends=('perl')
options=(purge '!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/${_dist}-${pkgver}.tar.gz)
md5sums=('e45aba8cb0ed856c8633d874a0bf1f5b')

build() {
	cd "${srcdir}/${_dist}-${pkgver}"
	unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
	export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
	perl Makefile.PL
	make
}

check() {
	cd "${srcdir}/${_dist}-${pkgver}"
	unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
	export PERL_MM_USE_DEFAULT=1
	make test
}

package() {
	cd "${srcdir}/${_dist}-${pkgver}"
	unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
	make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
